package com.flute.framework.search;

import com.flute.framework.exception.SearchException;
import com.flute.framework.search.result.SearchResult;

public interface ISearcher {
	public static final String TIME = "time";
	public static final String LENGTH = "length";
	public static final String SCORE = "score";
	public static final String DOC_ID = "docid";
	public static final float SCORE_FACTOR = 10000000;

	public String search(SearchRequest request) throws SearchException;

	public SearchResult nakeSearch(SearchRequest request)
			throws SearchException;

	public String getSearcherName();

	public void setSearcherProvider(ISearcherProvider searcherProvider);

	public ISearcherProvider getSearcherProvider();
}
